import random

print(random.random())  # 随机打印0-1

print(random.randint(0, 9999))


list1 = ['zhang', 'san', 'li', 'si', 'wang']
print(random.sample(list1, 3))


random.shuffle(list1)
print(list1)

for i in range(10):
 print(random.choice(list1))